package com.infore.statisticsAndAlarm.controller.weChat;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.infore.statisticsAndAlarm.service.IAnalysisWeChatService;
import com.infore.statisticsAndAlarm.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "综合分析--小程序接口", tags = {"综合分析--小程序接口" })
@RestController
@RequestMapping("/analysis")
public class Analysis {

	@Autowired
	private IAnalysisWeChatService iAnalysisWeChatService;
	
	@ApiOperation(value="断面趋势变化/水质趋势分析")
	@ApiImplicitParams({@ApiImplicitParam(value = "时间（年份）", name = "time", paramType = "query",required = true,dataType = "String"),
		@ApiImplicitParam(value = "站点编号", name = "mn", paramType = "query",required = true,dataType = "String")})
	@GetMapping(value = "/waterQuality")
	public ResultEntity waterQuality(String time,String mn){
		return iAnalysisWeChatService.waterQuality(time, mn);
	}
	
}
